package com.example.accessibilityhelper.util

import android.accessibilityservice.AccessibilityService
import android.view.accessibility.AccessibilityEvent

object App {

    var topWindow: String = ""

    lateinit var service:AccessibilityService

    fun onAccessibilityEvent(service: AccessibilityService, event: AccessibilityEvent) {
        if (event.eventType == AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED)
            topWindow = event.className.toString()
    }
}